package com.muyu.cloud.commodity.domain.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 分类添加请求
 *
 * @author <a href="mailto:602048165@qq.com">60204</a>
 * @version 1.0
 * @description: 分类添加请求
 * @date 2025/1/15 10:00
 */
@Data
@NoArgsConstructor
@Schema(description = "分类添加请求")
public class CategoryAddReq {

    @Schema(description = "分类名称", required = true)
    @NotBlank(message = "分类名称不能为空")
    private String categoryName;

    @Schema(description = "父分类ID，0表示一级分类")
    private Long parentId = 0L;

    @Schema(description = "分类图标URL")
    private String categoryIcon;

    @Schema(description = "排序", required = true)
    @NotNull(message = "排序不能为空")
    private Integer sort;

    @Schema(description = "状态：1启用，0禁用")
    private Integer status = 1;
}

